Skip to content
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.

nao1215/golling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

golling - update golang to the latest version

For those of you who want to stay up to date, golling will install or update the latest version of golang on your system. So, let's begin with 'golling update'.

🎆 Go 1.20.4 and 1.19.9 are released!

🔐 Security: Includes security fixes for html/template (CVE-2023-24539, CVE-2023-24540, and CVE-2023-29400).

📢 Announcement: https://t.co/CBHWxvAFzu

⬇️ Download: https://t.co/T7O3fSLm4j#golang pic.twitter.com/5Zue9rTHGd

— Go (@golang) May 2, 2023

How to install

Use "go install"

If you does not have the golang development environment installed on your system, please install golang from the golang official website.

 go install github.com/nao1215/golling@latest

Use homebrew (aarch64)

$ brew tap nao1215/tap
$ brew install nao1215/tap/golling

How to use

golling start update if golang is not up to date. By default, golling checks /usr/local/go. If golang is not on the system, golling install the latest golang in /usr/local/go.

$ sudo golling update
download go1.20.1.linux-amd64.tar.gz at current directory
Downloading...99886/99886 kB (100%)
[compare sha256 checksum]
 expect: 000a5b1fca4f75895f78befeb2eecf10bfff3c428597f3f1e69133b63b911b02
 got   : 000a5b1fca4f75895f78befeb2eecf10bfff3c428597f3f1e69133b63b911b02

backup original /usr/local/go as /usr/local/go.backup
start extract go1.20.1.linux-amd64.tar.gz at /usr/local/go
delete backup (/usr/local/go.backup)
delete go1.20.1.linux-amd64.tar.gz

success to update golang (version 1.20.1)

Support OS

  • Linux
  • Mac

Contributing / Contact

First off, thanks for taking the time to contribute! heart Contributions are not only related to development. For example, GitHub Star motivates me to develop!

If you would like to send comments such as "find a bug" or "request for additional features" to the developer, please use one of the following contacts.

LICENSE

The golling project is licensed under the terms of MIT LICENSE.

Another project: gup update binaries installed by "go install".

gup command update binaries installed by "go install" to the latest version. gup updates all binaries in parallel, so very fast. It also provides subcommands for manipulating binaries under $GOPATH/bin ($GOBIN). It is a cross-platform software that runs on Windows, Mac and Linux.